package com.lzy.shops;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@MapperScan("com.lzy.shops.mapper") /*指定某个文件下的文件都是mapper*/
@ServletComponentScan(basePackages = "com.lzy.shops")
@SpringBootApplication
public class shopsApplication {

    public static void main(String[] args) {
        SpringApplication.run(shopsApplication.class, args);
    }

}
